<include file="App/Home/View/Public/header.html" />
<div>
	<div class="title" flex="main:justify cross:center">
		<span>文章编辑</span>
	</div>
	<form class="form" action="" method="post">
		<div class="toolbar">
		<!-- <input class="btn " type="submit" value=""> -->
		<button type="submit" class="btn">
			<i class="iconfont icon-save"></i>保存
		</button>
		<a class="delete" href="{:U('Del',array('id'=>$id))}"><i class="iconfont icon-del"></i>删除</a>
		</div>
	<div class="item"><input class="text" type="text" name="title" value="{$title}" >
	</div>
	<div  class="item">

	<select class="select" name="category_id">
	<foreach name="items" item="item" >
	<if condition="$category_id eq $item['id']">
	<option selected="" value="{$item.id}">
			{$item.title}
		</option>
	<else /> 
	<option value="{$item.id}">
			{$item.title}
		</option>
	</if>
		
		</foreach>
	</select></div>

	
	
	
		
	<input type="hidden"  name="type" value="{$type}" >
	<input type="hidden"  name="id" value="{$id}" >
<script name="content" id="editor" type="text/plain" style="height:500px;width:644px;    margin-top: 12px;">{$content|htmlspecialchars_decode}</script>
	

</form>
</div>


 <script type="text/javascript"
  charset="utf-8"
  src="/Public/plugin/ueditor/ueditor.config.js"></script>

   <script type="text/javascript" charset="utf-8"
  src="/Public/plugin/ueditor/ueditor.config.js"></script>
 <script type="text/javascript" charset="utf-8"
  src="/Public/plugin/ueditor/ueditor.all.min.js"></script>
<include file="App/Home/View/Public/footer.html" />